package com.hackaton.maps;

import com.hackaton.maps.transport.Route;
import com.hackaton.maps.transport.TransportType;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * User: Ivan
 * Date: 20.10.13
 * Time: 10:46
 * To change this template use File | Settings | File Templates.
 */
public class ContentCreater {

    public static void initTram(HashMap<String, Route> routes) {
        Route route = new Route(TransportType.tram);
        route.addStation(49.24079497, 28.50974143, "Залізничний вокзал");
        route.addPoint(49.24150594, 28.50886971);
        route.addStation(49.24755401, 28.5082233, "Муніципальний ринок");
        route.addPoint(49.24913682, 28.50820184);
        route.addPoint(49.24854152, 28.4926182);
        route.addStation(49.24709526, 28.49271208, "Палач мистецтв - Зоря");
        route.addStation(49.24300489, 28.49296421, "Центральний Стадіон");
        route.addStation(49.23990187, 28.4931466, "Площа перемоги");
        route.addPoint(49.23898073, 28.49318683);
        route.addStation(49.23742912, 28.49002451, "Пам'яйтник коцюбинського");
        route.addPoint(49.23560425, 28.48577052);
        route.addStation(49.23312078, 28.47382396, "Соборная");
        route.addPoint(49.23271269, 28.47173318);
        route.addPoint(49.23265489, 28.47100362);
        route.addPoint(49.23270656, 28.47061805);
        route.addStation(49.2338949, 28.46352562, "Париж");
        route.addPoint(49.23428372, 28.46114248);
        route.addPoint(49.23430123, 28.46063688);
        route.addPoint(49.2341366, 28.45845491);
        route.addStation(49.2317126, 28.45625013, "Вул. Пирогова");
        route.addPoint(49.22959676, 28.4527418);
        route.addStation(49.22919039, 28.45247492, "Лікарня ім. Пирогова");
        route.addStation(49.2268187, 28.44829738, "Медичний Університет");
        route.addStation(49.22318037, 28.44320521, "Вул. Заболотного");
        route.addStation(49.22050357, 28.44024673, "Вул. Дачна");
        route.addStation(49.21800356, 28.43748406, "Вул. Академіка Ющенка");
        route.addPoint(49.21724145, 28.43664452);
        route.addPoint(49.21702464, 28.43633406);
        route.addStation(49.21407899, 28.43143299, "Еклектро мережа");
        routes.put("1", route);
        route.draw(MapHelper.getInstance().getMap());
        // complete

        route = new Route(TransportType.tram);
        route.addStation(49.24079497, 28.50974143, "Залізничний вокзал");
        route.addPoint(49.24150594, 28.50886971);
        route.addStation(49.24755401, 28.5082233, "Муніципальний ринок");
        route.addPoint(49.24913682, 28.50820184);
        route.addPoint(49.24854152, 28.4926182);
        route.addStation(49.24709526, 28.49271208, "Палач мистецтв - Зоря");
        route.addStation(49.24300489, 28.49296421, "Центральний Стадіон");
        route.addStation(49.23990187, 28.4931466, "Площа перемоги");
        route.addPoint(49.23898073, 28.49318683);
        route.addStation(49.23742912, 28.49002451, "Пам'яйтник коцюбинського");
        route.addPoint(49.23560425, 28.48577052);
        route.addStation(49.23312078, 28.47382396, "Соборная");
        route.addPoint(49.23271269, 28.47173318);
        route.addPoint(49.23265489, 28.47100362);
        route.addPoint(49.23270656, 28.47061805);
        route.addStation(49.2338949, 28.46352562, "Париж");
        route.addPoint(49.23428372, 28.46114248);
        route.addPoint(49.23430123, 28.46063688);
        route.addPoint(49.2341366, 28.45845491);
        route.addStation(49.2317126, 28.45625013, "Вул. Пирогова");
        route.addPoint(49.22959676, 28.4527418);
        route.addStation(49.22919039, 28.45247492, "Лікарня ім. Пирогова");
        route.addStation(49.2268187, 28.44829738, "Медичний Університет");
        route.addPoint(49.22647538, 28.44774216);
        route.addPoint(49.22648238, 28.44734654);
        route.addStation(49.22597089, 28.4387172, "Шевченка");
        route.addStation(49.22568624, 28.43403541, "Ляля ратушна");
        route.addStation(49.22517036, 28.42653796, "600 річчя");
        route.addPoint(49.22512832, 28.42605449);
        route.addStation(49.2251384, 28.42116818, "Університетська");
        route.addPoint(49.2251511, 28.41604114);
        route.addPoint(49.22516467, 28.41579773);
        route.addStation(49.22561355, 28.41262668, "Пр. Юності");
        route.addPoint(49.22576332, 28.41176569);
        route.addPoint(49.22584565, 28.41160744);
        route.addStation(49.22679024, 28.40568513, "Воїнів Інтернаціоналістів");
        routes.put("6", route);
        route.draw(MapHelper.getInstance().getMap());
    }

    public static void initTaxi(HashMap<String, Route> routes) {
    }

    public static void initTrol(HashMap<String, Route> routes) {
        Route route = new Route(TransportType.trol);
        route.addStation(49.239359, 28.50845128, "Залізничний вокзал");
        route.addPoint(49.23932047, 28.5079135);
        route.addPoint(49.23948859, 28.50561753);
        route.addStation(49.23948333, 28.50525878, "Муніципальний ринок");
        route.addStation(49.23927144, 28.49836081, "Центральний ринок");
        route.addStation(49.2390788, 28.49388689, "Площа перемоги");
        route.addPoint(49.23904378, 28.49347249);
        route.addPoint(49.23898073, 28.49318683);
        route.addStation(49.23742912, 28.49002451, "Памяйтник коцюбинського");
        route.addPoint(49.23560425, 28.48577052);
        route.addStation(49.23312078, 28.47382396, "Соборная");
        route.addPoint(49.23271269, 28.47173318);
        route.addPoint(49.23265489, 28.47100362);
        route.addPoint(49.23270656, 28.47061805);
        route.addStation(49.2338949, 28.46352562, "Париж");
        route.addPoint(49.23428372, 28.46114248);
        route.addPoint(49.23430123, 28.46063688);
        route.addPoint(49.2341366, 28.45845491);
        route.addStation(49.2317126, 28.45625013, "Вул. Пирогова");
        route.addPoint(49.22959676, 28.4527418);
        route.addStation(49.22919039, 28.45247492, "Лікарня ім. Пирогова");
        route.addStation(49.2268187, 28.44829738, "Медичний Університет");
        route.addPoint(49.22647538, 28.44774216);
        route.addPoint(49.22648238, 28.44734654);
        route.addStation(49.22597089, 28.4387172, "Шевченка");
        route.addStation(49.22568624, 28.43403541, "Ляля ратушна");
        route.addStation(49.22517036, 28.42653796, "600 річчя");
        route.addPoint(49.22512832, 28.42605449);
        route.addStation(49.2251384, 28.42116818, "Університетська");
        route.addPoint(49.2251511, 28.41604114);
        route.addPoint(49.22516467, 28.41579773);
        route.addStation(49.22561355, 28.41262668, "Пр. Юності");
        route.addPoint(49.22576332, 28.41176569);
        route.addPoint(49.22584565, 28.41160744);
        route.addStation(49.22679024, 28.40568513, "Воїнів Інтернаціоналістів");
        routes.put("5", route);
        route.draw(MapHelper.getInstance().getMap());
        // -----------

        route = new Route(TransportType.trol);
        route.addStation(49.26531919, 28.47307831, "Водоканал");
        route.addStation(49.26154541, 28.47301662, "Київська");
        route.addStation(49.25852758, 28.47292274, "Київська");
        route.addStation(49.25348578, 28.47285569, "Гонти");
        route.addPoint(49.25298508, 28.47289592);
        route.addPoint(49.25269708, 28.47307362);
        route.addStation(49.25082463, 28.47461924, "Київська");
        route.addStation(49.24839795, 28.47666711, "Київська");
        route.addPoint(49.2476398, 28.47732827);
        route.addPoint(49.24745771, 28.47746171);
        route.addPoint(49.24721958, 28.4775757);
        route.addPoint(49.24696394, 28.47767226);
        route.addPoint(49.24677046, 28.47772457);
        route.addPoint(49.24470692, 28.47821206);
        route.addStation(49.24461762, 28.47823754, "Київська");
        route.addPoint(49.24167755, 28.47883433);
        route.addPoint(49.24032391, 28.47871833);
        route.addPoint(49.2401304, 28.47879611);
        route.addPoint(49.23995266, 28.47889267);
        route.addPoint(49.23970793, 28.4790878);
        route.addPoint(49.23938877, 28.47936071);
        route.addPoint(49.23902933, 28.47961016);
        route.addStation(49.23826973, 28.48032027, "Київська");
        route.addPoint(49.23715242, 28.48128855);
        route.addPoint(49.23671809, 28.48183706);
        route.addPoint(49.23662703, 28.48198526);
        route.addPoint(49.23621897, 28.48301187);
        route.addStation(49.23604384, 28.48386213, "Автовокзал");
        route.addPoint(49.23560425, 28.48577052);

        route.addPoint(49.23560425, 28.48577052);
        route.addStation(49.23742912, 28.49002451, "Памяйтник коцюбинського");
        route.addPoint(49.23898073, 28.49318683);
        route.addPoint(49.23904378, 28.49347249);
        route.addStation(49.2390788, 28.49388689, "Площа перемоги");
        route.addStation(49.23927144, 28.49836081, "Центральний ринок");
        route.addStation(49.23948333, 28.50525878, "Муніципальний ринок");
        route.addPoint(49.23948859, 28.50561753);
        route.addPoint(49.23932047, 28.5079135);
        route.addStation(49.239359, 28.50845128, "Залізничний вокзал");
        routes.put("6", route);
        route.draw(MapHelper.getInstance().getMap());
        // -----------
    }
}
